package com.mjx.algorithm.oj;

import java.util.Scanner;

/**
 * 替换字符
 * Created by 梅京翔 on 2017 02 10下午 11:46.
 */
public class problem1206 {
    public static void main(String[] args) {
        String c;
        String s;
        Scanner scanner =new Scanner(System.in);
        c = scanner.nextLine();
        s = scanner.nextLine();
        System.out.println(s.replace(c,""));
    }
}
